'use strict';
exports.main = async (event, context) => {
	let apiUrl="http://m.wufazhuce.com/one/ajaxlist/0?_token=2df48f5e3886d886f00e5d4c8e92e4d3ff8345ff"
	const res = await uniCloud.httpclient.request(apiUrl, {
	    method: 'GET',
		headers:{
			// Referer: 'http://m.wufazhuce.com/one',
			// User-Agent:'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
			// Host: 'm.wufazhuce.com'
			// X-Requested-With: 'XMLHttpRequest',
			// Cookie: '_ga=GA1.2.1319856901.1598493031; Hm_lvt_f5c3b24a04c561936d708b55833d8294=1624521663,1624583319; _gid=GA1.2.1976410504.1624861747; PHPSESSID=fvddi6cosj9ktifuvjhqjo3m9o; _gat=1; Hm_lvt_c945a8c1ead2ed7539596f4ded541ec1=1624861747,1624928305,1624931010,1624931646; Hm_lpvt_c945a8c1ead2ed7539596f4ded541ec1=1624931651'
		},
		withCredentials :true,
	  //   data: {
			// page:0,
	  //     _token: '2df48f5e3886d886f00e5d4c8e92e4d3ff8345ff'
	  //   },
	    contentType: 'json', // 指定以application/json发送data内的数据
	    dataType: 'json' // 指定返回值为json格式，自动进行parse
	  })
	console.log(res)
	
	return res
};

 
